package cn.tedu.tmall.front.mall.dao.persist.mapper;

import cn.tedu.tmall.front.mall.pojo.entity.Order;
import cn.tedu.tmall.front.mall.pojo.vo.OrderListItemVO;
import cn.tedu.tmall.front.mall.pojo.vo.OrderStandardVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderMapper extends BaseMapper<Order> {
    int insert(Order order);
    //查询单个订单信息
    OrderStandardVO selectByUserByOrderId(Long orderId,Long userId);
    //根据用户id查询所有订单信息
    List<OrderListItemVO> list(Long userId);
}
